package com.example.entity;

import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
public class Resp {
    private Boolean flag; //请求是否成功
    private Object data; //请求返回的数据

    public Resp(Boolean aTrue) {
        this.flag = aTrue;
    }

    public Resp(Boolean aTrue, Object list) {
        this.flag = aTrue;
        this.data = list;
    }


}
